import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class VipRoomModel {
    constructor() {
        this.url = BaseUrl
    }

    all(params) {
        let end = this.url + 'getvipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    add(params) {
        let end = this.url + 'addvipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    delete(params) {
        let end = this.url + 'delvipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    set(params) {
        let end = this.url + 'setvipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    kickOut(params) {
        let end = this.url + 'kickoutvipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default VipRoomModel